package service;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 创建时间：2018年03月13日11:09 <br>
 * 作者：fuchaoyang <br>
 * 描述：
 */

public class MsgInfo implements Parcelable {
  public int id;
  public String tile;
  public long time;

  public MsgInfo() {
  }

  public MsgInfo(int id, String tile) {
    this.id = id;
    this.tile = tile;
  }

  protected MsgInfo(Parcel in) {
    id = in.readInt();
    tile = in.readString();
    time = in.readLong();
  }

  public static final Creator<MsgInfo> CREATOR = new Creator<MsgInfo>() {
    @Override public MsgInfo createFromParcel(Parcel in) {
      return new MsgInfo(in);
    }

    @Override public MsgInfo[] newArray(int size) {
      return new MsgInfo[size];
    }
  };

  @Override public int describeContents() {
    return 0;
  }

  @Override public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(id);
    dest.writeString(tile);
    dest.writeLong(time);
  }

  @Override public String toString() {
    return "MsgInfo{" + "id=" + id + ", tile='" + tile + '\'' + ", time=" + time + '}';
  }
}
